@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #161823;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FE2C55, #8B5CF6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #8B5CF6, #25F4EE);
}

/* 抖音风格按钮 */
.tiktok-btn {
  @apply bg-tiktok-gradient text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 hover:scale-105 hover:shadow-lg;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
}

.tiktok-btn:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* 卡片样式 */
.tiktok-card {
  @apply bg-tiktok-dark border border-gray-700 rounded-xl p-6 transition-all duration-300 hover:border-tiktok-pink hover:shadow-lg;
  background: linear-gradient(135deg, rgba(22, 24, 35, 0.9) 0%, rgba(47, 47, 47, 0.7) 100%);
}

.tiktok-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(254, 44, 85, 0.2);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, #FE2C55 0%, #8B5CF6 50%, #25F4EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 动画 */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 机器人图标样式 */
.robot-icon {
  filter: drop-shadow(0 0 10px rgba(254, 44, 85, 0.5));
  transition: all 0.3s ease;
}

.robot-icon:hover {
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.7));
  transform: scale(1.1);
}
